<div class="list">
	<div class="mustach-header" ></div>

	<form name="theForm" novalidate="novalidate">
		<label class="item item-input item-icon-right">
			<i class="icon f12"
			   ng-class="{true: 'ion-close color-assertive', false: 'ion-checkmark color-balanced'}[theForm.mobile.$invalid]"></i>
			<input type="tel" name="mobile" ng-model="register.mobile" ng-pattern="/^1[1|3|4|5|7|8][0-9]\d{8}$/"
			       placeholder="请填写手机号码" required>
		</label>
		<label class="item item-input item-icon-right">
			<i class="icon f12" ng-class="{true: 'ion-close color-assertive', false: 'ion-checkmark color-balanced'}[theForm.sms_code.$invalid]"></i>
			<input type="tel" name="sms_code" ng-model="register.sms_code" ng-pattern="/^\d{6}$/" placeholder="请填写验证码" required>

			<button class="button button-small sendSms mr40" ng-disabled="theForm.mobile.$invalid">
				获取验证码
			</button>
		</label>
		<label class="item item-input item-icon-right">
			<i class="icon f12 ion-alert color-energized"></i>
			<input type="text" name="nickname" ng-model="register.nickname" placeholder="请填写用户昵称">
		</label>
		<label class="item item-input item-icon-right">
			<i class="icon f12"
			   ng-class="{true: 'ion-close color-assertive', false: 'ion-checkmark color-balanced'}[theForm.password.$invalid]"></i>
			<input type="password" name="password" ng-model="register.password" placeholder="请设置登录密码"
			       ng-minlength="6" ng-maxlength="20"  required>
		</label>
		<label class="item item-input item-icon-right">
			<i class="icon f12"
			   ng-class="{true: 'ion-close color-assertive', false: 'ion-checkmark color-balanced'}[theForm.repassword.$invalid || register.password != register.repassword]"></i>
			<input type="password" name="repassword" ng-model="register.repassword" placeholder="请再次输入密码"
			       ng-minlength="6" ng-maxlength="20"  required>
		</label>
		<div class="padding mt20">

			<button class="button button-calm button-block" type="submit" ng-click="submit()"
					ng-disabled="!theForm.$valid || register.password != register.repassword">
				注册
			</button>

			<div class="mtb10 color-8 p15 D-center">
				<div ui-sref="app.login" class="f15 ">
					已有胡子先生账号？去登录
				</div>
				<div>点击注册[按钮]<br/>代表你已阅读并同意 <a class="color-aux" ui-sref="app.reg_protocol">胡子先生协议</a>
				</div>
			</div>

		</div>


	</form>
</div>